home *** CD-ROM | disk | FTP | other *** search
/ MacFormat España 21 / macformat_21.iso / Shareware / Programación / VideoToolbox / Pre-compiled headers / VideoToolbox.c < prev    next >
Text File  |  1995-06-01  |  2KB  |  53 lines

  1. /*
  2. VideoToolbox.c
  3.  
  4. You should ask THINK C to precompile this file in order to precompile the VideoToolbox.h header. 
  5.  
  6. (If your aim is to produce an external code resource for MATLAB then use VideoToolboxMATLAB.c
  7. instead of this file.) 
  8.  
  9. (If you're using Metrowerks CodeWarrior, then use the VideoToolbox.pch instead of this file.
  10. It will automatically generate the correct file name for the precompiled header and store 
  11. it in the right place.)
  12.  
  13. All the pre-compiled headers should be stored in
  14. "VideoToolbox:VideoToolboxSources:Precompiled headers". Here's my naming
  15. convention for pre-compiled headers:
  16. "VideoToolbox.pre" = THINK C, 68k, 2-byte int, "universal" floating format, w/o 8881 fpu.
  17. "VideoToolbox.f.pre" = THINK C, 68k, 2-byte int, "universal" floating format, w 8881 fpu.
  18. "VideoToolbox.68k...." = CodeWarrior, 68k,...
  19. "VideoToolbox.ppc...." = CodeWarrior, PowerPC, ...
  20.  
  21. INSTRUCTIONS:
  22. While you have this file open in THINK C, select Precompile from the Source menu. 
  23. Save the result as either "VideoToolbox.f.pre" (if 8881 code is enabled) or "VideoToolbox.pre" 
  24. (if 8881 code is disabled) in the "VideoToolbox:VideoToolboxSources:Precompiled headers" folder. 
  25. You can then speed up the compilation of any project roughly tenfold by typing the line
  26.     #include "VideoToolbox.f.pre"
  27. (or whichever prefix file is appropriate) into the Edit:Options:THINK C:Prefix window. 
  28.  
  29. Note that Precompilation ignores the project prefix.
  30.  
  31. Unfortunately THINK C never checks whether a precompiled header is out of
  32. date. If you update any of the Apple, Standard C, or VideoToolbox.h headers,
  33. then you should recreate the precompiled header. Also, the precompiled header
  34. will reflect the compiler and language settings in effect at the time of
  35. precompilation (e.g. size of int and double), so if you have different projects
  36. with different settings then you may need various versions of the precompiled
  37. header.
  38.  
  39. You can add this file to your project. It won't generate any code or affect your
  40. project in any way. It merely keeps this file handy.
  41.  
  42. HISTORY:
  43. 2/27/93    dgp    Wrote it.
  44. 4/22/93    dgp    Updated comments.
  45. 9/8/93    dgp    Updated comments.
  46. 9/12/93    dgp    Updated comments.
  47. 9/15/93    dgp    Updated comments.
  48. 10/20/94 dgp Update comments.
  49. 6/1/95 dgp updated comments, referred Metrowerks CodeWarrior users to VideoToolbox.pch file.
  50. */
  51.  
  52. #include "VideoToolbox.h"
  53.